package com.gnerv.pabu.basic.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gnerv.pabu.basic.core.entity.RoleAuthorization;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 基础平台-权限表 Mapper 接口
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-10-10
 */
@Mapper
public interface RoleAuthorizationMapper extends BaseMapper<RoleAuthorization> {

    int bindRoleAuthorization(@Param("roleAuthorizations") List<RoleAuthorization> roleAuthorizations);

    int unBindRoleAuthorization(@Param("roleId") String roleId);
}
